package com.corechina.apex_osswords.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 知识库
 * </p>
 *
 * @author fyh
 * @since 2023-02-03
 */
@Getter
@Setter
@TableName("core_knowledge_base")
@ApiModel(value = "CoreKnowledgeBaseVo对象", description = "知识库")
public class CoreKnowledgeBaseVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("分类 以逗号分隔")
    private String type;

    @ApiModelProperty("内容")
    private String content;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("创建人")
    private Integer creator;

    @ApiModelProperty("企业id")
    private Integer enterpriseId;

    @ApiModelProperty("简介")
    private String introduction;

    @ApiModelProperty("cover")
    private String cover;

    @ApiModelProperty("企业名称")
    private String enterpriseName;

    @ApiModelProperty("logoBase64")
    private String coverBase64;

    @ApiModelProperty("服务器名称")
    private String typeName;

    @ApiModelProperty("创建人姓名")
    private String creatorName;
}
